package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件管理对象 t_file
 *
 * @author Bandit
 * @date 2022-11-06
 */
public class TFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 文件存储路径 */
    @Excel(name = "文件存储路径")
    private String url;

    /**
     * 文件名
     */
    private String fileName;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String type;

    /** 文件md5唯一标识串 */
    @Excel(name = "文件md5唯一标识串")
    private String md5;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setMd5(String md5)
    {
        this.md5 = md5;
    }

    public String getMd5()
    {
        return md5;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return "TFile{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", fileName='" + fileName + '\'' +
                ", type='" + type + '\'' +
                ", md5='" + md5 + '\'' +
                '}';
    }
}
